package com.yangzb.neo4j.service;

import com.yangzb.neo4j.node.StudentNode;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface StudentService {

    /**
     *  获取所有数据
     * @return
     */
    @Transactional
//    @Transactional(transactionManager = "neo4jTransactionManager")
    public List<StudentNode> getAll();

    /**
     * 添加节点
     * @param studentNode
     */
    @Transactional
//    @Transactional(transactionManager = "neo4jTransactionManager")
    public int saveStudentNode(StudentNode studentNode);
}
